package com.adou.d8.d6;

import java.util.ArrayList;

public class ClassManager {
    private ArrayList<Student> students = new ArrayList<>();

    private StudentOperator oper = new StudentOperatorImpl2();

    public ClassManager(){
        Student stu1 = new Student("迪丽热巴", '女', 98);
        students.add(stu1);
        Student stu2 = new Student("古力娜扎", '女', 100);
        students.add(stu2);
        Student stu3 = new Student("马儿扎克", '男', 80);
        students.add(stu3);
        Student stu4 = new Student("卡尔扎巴", '男', 60);
        students.add(stu4);
    }

    public void printInfo(){
        oper.printInfo(students);
    }

    public void printScore(){
        oper.printScore(students);
    }
}
